/**
 * Created with JetBrains WebStorm.
 * User: Kay
 * Date: 13-6-9
 * Time: 上午11:06
 * To change this template use File | Settings | File Templates.
 */

/* IE7 & 8 表格隔行变色解决 start */
$(document).ready(function() {
    $('tr:odd').addClass('odd');
});
/* IE7 & 8 表格隔行变色解决 end   */

$(document).ready(function() {
    $('.s_close').click(function() {
        $('.s_sidebar').hide();
        $('.s_close').hide();
        $('.s_offset_sidebar').css('margin-left','20px');
        $('body').css('background-image','none');
        $('.s_open').show();
    });
    $('.s_open').click(function() {
        $('.s_sidebar').show();
        $('.s_open').hide();
        $('.s_offset_sidebar').removeAttr('style');
        $('body').removeAttr('style');
        $('.s_close').show();
    });
    $('.nav-list li').click(function () {
    $('.nav-list li').removeClass('active');
    $(this).addClass('active')
    })
});